<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css" />
  </head>

  <body>
    <div id="app">
      <div style="margin: 40px">
        <p>
          <label class="form-label">性别</label>
          <input v-model="gender" type="radio" value="1" /> 男
          <input v-model="gender" type="radio" value="2" /> 女
        </p>
        <p>
          <label class="form-label">城市</label>
          <select v-model="city">
            <option value="nj">南京</option>
            <option value="sh">上海</option>
            <option value="wx">无锡</option>
            <option value="bj">北京</option>
          </select>
        </p>
      </div>
    </div>
    <script type="module">
      import { createApp, ref, reactive, computed } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          const gender = ref("1");
          const city = ref("nj");
          return { gender, city };
        },
      });

      app.mount("#app"); //挂载
    </script>
  </body>
</html>
